import axios from '@/libs/api.request'

// 获取商品分类列表
export const shopCategoryList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/category/list',
    method: 'post',
    data: data
  })
}
// 获取商品列表
export const goodsList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/goods/list',
    method: 'post',
    data: data
  })
}
// 商品复制
export const copyGoods = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/goods/copy',
    method: 'post',
    data: data
  })
}
// 商品冻结
export const freezeGoods = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/goods/freeze',
    method: 'post',
    data: data
  })
}
// 商品详情
export const getGoodsDetail = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/goods/get',
    method: 'post',
    data: data
  })
}
// 所属分类
export const kindList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/kind/list',
    method: 'post',
    data: data
  })
}
// 游戏券配置列表查询
export const configList = (data) => {
  return axios.request({
    url: '/product/gamecoupon/config/list',
    method: 'post',
    data: data
  })
}
// 查询参数值列表
export const propertyList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    // baseURL: 'http://10.101.3.123:8083/product/property/list',
    url: '/product/property/list',
    method: 'post',
    data: data
  })
}
// 创建后台商品
export const creatGoodsList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/goods/create',
    method: 'post',
    data: data
  })
}
//  商品分类管理_编辑分类
export const editGoodsList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/goods/edit',
    method: 'post',
    data: data
  })
}
// 获取属性包接口
export const porbaoList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/property/package/get',
    method: 'post',
    data: data
  })
}
